package com.situ.company.web220111.project.dao;

import com.situ.company.web220111.project.model.ProjectModel;

import java.util.List;

public interface IProjectDao {


    /**
     * 添加记录
     *
     * @param model
     * @return Integer
     */
    String insert(ProjectModel model);

    /**
     * 根据主键删除
     *
     * @param model
     * @return Integer
     */
    String deleteByCode(ProjectModel model);

    /**
     * 根据查询条件删除
     *
     * @param model
     * @return Integer
     */
    String delete(ProjectModel model);

    /**
     * 根据主键修改全部字段
     *
     * @param model
     * @return Integer
     */
    String updateAll(ProjectModel model);

    /**
     * 根据主键修改部分字段
     *
     * @param model
     * @return Integer
     */
    String updateActive(ProjectModel model);

    /**
     * 根据多条件模糊查询记录
     *
     * @param model
     * @return List<DepartmentModel>
     */
    List<ProjectModel> selectList(ProjectModel model);

    /**
     * 根据主键查询一条记录
     *
     * @param model
     * @return DepartmentModel
     */
    ProjectModel selectModel(ProjectModel model);

    Integer selectCount(ProjectModel model);

}
